cod_register_promotion

Syntax

native cod_register_promotion(const name[], const desc[], const baseClass[], level, promotion, weapons = NONE, health = NONE, intelligence = NONE, strength = NONE, stamina = NONE, condition = NONE, flag = NONE);

Usage

name
Class name
desc
Class description
baseClass
Base class for promotion
level
Level to advance to this promotion
promotion
Promotion step, available: PROMOTION_FIRST, PROMOTION_SECOND, PROMOTION_THIRD.
weapons
Class weapons
health
Class health bonus
intelligence
Class intelligence bonus
strength
Class strength bonus
stamina
Class stamina bonus
condition
Class condition bonus
flag
Class access flag

Description

Registers new class promotion.

Note

Weapons can be bitsum, for example for both M4A1 and AK47: (1<<CSW_M4A1)|(1<<CSW_AK47).

Note

Values from weapons to flag will be copied from base class if not specified.

Return

Class promotion index